package com.valuedaas.schoolsafety.controller.resource.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.valuedaas.schoolsafety.controller.resource.vo.DicChildVO;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

public class DicVO {

	@JSONField(name = "_id")
	private String _id;

	@NotBlank(message = "字典Key不能为空")
	private String dicKey;

	@NotBlank(message = "字典名称不能为空")
	private String dicName;

	@NotBlank(message = "字典是否启用不能为空")
	private String isStart;

	private String remark;

	// @NotEmpty(message = "字典内容不能为空")
	// @Valid
	private List<DicChildVO> childs;

	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}

	public String getDicKey() {
		return dicKey;
	}

	public void setDicKey(String dicKey) {
		this.dicKey = dicKey;
	}

	public String getDicName() {
		return dicName;
	}

	public void setDicName(String dicName) {
		this.dicName = dicName;
	}

	public String getIsStart() {
		return isStart;
	}

	public void setIsStart(String isStart) {
		this.isStart = isStart;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<DicChildVO> getChilds() {
		return childs;
	}

	public void setChilds(List<DicChildVO> childs) {
		this.childs = childs;
	}

}
